package com.xuxy.service;

import com.xuxy.dao.SysMenuMapper;
import com.xuxy.entity.SysMenu;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class SysMenuService {

    private final SysMenuMapper menuMapper;

    public List<SysMenu> list() {
        return menuMapper.select();
    }
}
